package com.woniuxy.aspectj;

import com.woniuxy.service.RbacManagerService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author 罗蔚
 * @Date 2022/3/28 16:23
 * @Description TODO
 */
public class TestAsprctJDemo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationAnnoAop.xml");
        RbacManagerService rbacManagerService = (RbacManagerService) applicationContext.getBean("rbacManagerServiceImpl");
        rbacManagerService.addOne();
//        rbacManagerService.findAll();
    }
}
